import Vue from 'vue'
import Router from 'vue-router'
// import Main from '@/views/Main'
// import Index from '@/views/Index'

// import Result from '@/views/Result'
// import Detail from '@/views/Detail'
// import Order from '@/views/Order'
const Index = () => import('@/views/Index')
const Detail = () => import('@/views/Detail')
const Order = () => import('@/views/Order')
const Result = () => import('@/views/Result')
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index     
    }, 
    
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    },
    {
      path:'/order/:id',
      name:'Order',
      component:Order
    },
    {
      path: '/result',
      name: 'Result',
      component: Result
    },

    
  ]
})

